/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * JFrameTratamento.java
 *
 * Created on 29/10/2011, 11:19:28
 */
package visao;

/**
 *
 * @author David
 */
public class JFrameTratamento extends javax.swing.JFrame {

    /** Creates new form JFrameTratamento */
    public JFrameTratamento() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        pnlBuscaTratamento = new javax.swing.JPanel();
        lblPesquisaTratamento = new javax.swing.JLabel();
        cbxFiltroTratamento = new javax.swing.JComboBox();
        txtPesquisaTratamento = new javax.swing.JTextField();
        btnBuscar = new javax.swing.JButton();
        lblResultadoPesquisaCliente = new javax.swing.JLabel();
        jScrollPaneResulClient = new javax.swing.JScrollPane();
        tbeResultado = new javax.swing.JTable();
        lblAnimaisClient = new javax.swing.JLabel();
        jScrollPaneResultadoAnimal = new javax.swing.JScrollPane();
        jTableAnimal = new javax.swing.JTable();
        lblTratamentoAnimal = new javax.swing.JLabel();
        jScrollPaneTratAnimal = new javax.swing.JScrollPane();
        jTableTratAnimal = new javax.swing.JTable();
        pnlSessãoTrat = new javax.swing.JPanel();
        jScrollPaneSessãoTrat = new javax.swing.JScrollPane();
        jTableSessãoTrat = new javax.swing.JTable();
        btnRegistroDt = new javax.swing.JButton();
        lblCadastroProdutos = new javax.swing.JLabel();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        pnlBuscaTratamento.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Busca", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Verdana", 1, 12), new java.awt.Color(51, 51, 51))); // NOI18N

        lblPesquisaTratamento.setFont(new java.awt.Font("Verdana", 0, 12));
        lblPesquisaTratamento.setForeground(new java.awt.Color(51, 51, 51));
        lblPesquisaTratamento.setText("Pesquisar por:");

        cbxFiltroTratamento.setFont(new java.awt.Font("Verdana", 0, 12));
        cbxFiltroTratamento.setForeground(new java.awt.Color(51, 51, 51));
        cbxFiltroTratamento.setMaximumRowCount(4);
        cbxFiltroTratamento.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Código", "Nome ", "CPF", "Cidade", "Endereço" }));

        txtPesquisaTratamento.setFont(new java.awt.Font("Verdana", 0, 12));
        txtPesquisaTratamento.setForeground(new java.awt.Color(51, 51, 51));
        txtPesquisaTratamento.setToolTipText("");

        btnBuscar.setFont(new java.awt.Font("Verdana", 0, 12));
        btnBuscar.setForeground(new java.awt.Color(51, 51, 51));
        btnBuscar.setText("Buscar");

        lblResultadoPesquisaCliente.setFont(new java.awt.Font("Verdana", 0, 12));
        lblResultadoPesquisaCliente.setForeground(new java.awt.Color(51, 51, 51));
        lblResultadoPesquisaCliente.setText("Resultado da Pesquisa de Clientes");

        tbeResultado.setFont(new java.awt.Font("Verdana", 0, 12));
        tbeResultado.setForeground(new java.awt.Color(51, 51, 51));
        tbeResultado.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null}
            },
            new String [] {
                "Código", "Nome", "Endereço", "RG "
            }
        ) {
            boolean[] canEdit = new boolean [] {
                false, false, false, false
            };

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        jScrollPaneResulClient.setViewportView(tbeResultado);

        lblAnimaisClient.setFont(new java.awt.Font("Verdana", 0, 12));
        lblAnimaisClient.setForeground(new java.awt.Color(51, 51, 51));
        lblAnimaisClient.setText("Animais do Cliente");

        jTableAnimal.setFont(new java.awt.Font("Verdana", 0, 12));
        jTableAnimal.setForeground(new java.awt.Color(51, 51, 51));
        jTableAnimal.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null}
            },
            new String [] {
                "Nome", "Especie", "Raça"
            }
        ) {
            boolean[] canEdit = new boolean [] {
                false, false, false
            };

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        jTableAnimal.setEnabled(false);
        jScrollPaneResultadoAnimal.setViewportView(jTableAnimal);

        lblTratamentoAnimal.setFont(new java.awt.Font("Verdana", 0, 12));
        lblTratamentoAnimal.setForeground(new java.awt.Color(51, 51, 51));
        lblTratamentoAnimal.setText("Tratamentos do Animal");

        jTableTratAnimal.setFont(new java.awt.Font("Verdana", 0, 12));
        jTableTratAnimal.setForeground(new java.awt.Color(51, 51, 51));
        jTableTratAnimal.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null}
            },
            new String [] {
                "Tipo de tratamento", "Ocorrencias", "Data prevista de inicio", "Data prevista de termino"
            }
        ) {
            boolean[] canEdit = new boolean [] {
                false, false, false, false
            };

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        jTableTratAnimal.setEnabled(false);
        jScrollPaneTratAnimal.setViewportView(jTableTratAnimal);

        javax.swing.GroupLayout pnlBuscaTratamentoLayout = new javax.swing.GroupLayout(pnlBuscaTratamento);
        pnlBuscaTratamento.setLayout(pnlBuscaTratamentoLayout);
        pnlBuscaTratamentoLayout.setHorizontalGroup(
            pnlBuscaTratamentoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, pnlBuscaTratamentoLayout.createSequentialGroup()
                .addGroup(pnlBuscaTratamentoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(pnlBuscaTratamentoLayout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jScrollPaneTratAnimal, javax.swing.GroupLayout.DEFAULT_SIZE, 568, Short.MAX_VALUE))
                    .addGroup(pnlBuscaTratamentoLayout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jScrollPaneResultadoAnimal, javax.swing.GroupLayout.DEFAULT_SIZE, 568, Short.MAX_VALUE))
                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, pnlBuscaTratamentoLayout.createSequentialGroup()
                        .addContainerGap()
                        .addGroup(pnlBuscaTratamentoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(pnlBuscaTratamentoLayout.createSequentialGroup()
                                .addComponent(lblPesquisaTratamento)
                                .addGap(18, 18, 18)
                                .addComponent(cbxFiltroTratamento, javax.swing.GroupLayout.PREFERRED_SIZE, 156, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(txtPesquisaTratamento, javax.swing.GroupLayout.PREFERRED_SIZE, 192, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addComponent(btnBuscar)
                                .addGap(19, 19, 19))
                            .addGroup(pnlBuscaTratamentoLayout.createSequentialGroup()
                                .addComponent(lblAnimaisClient)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 452, Short.MAX_VALUE))))
                    .addGroup(pnlBuscaTratamentoLayout.createSequentialGroup()
                        .addGap(12, 12, 12)
                        .addComponent(lblTratamentoAnimal)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 421, Short.MAX_VALUE))
                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, pnlBuscaTratamentoLayout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(lblResultadoPesquisaCliente))
                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, pnlBuscaTratamentoLayout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jScrollPaneResulClient, javax.swing.GroupLayout.DEFAULT_SIZE, 568, Short.MAX_VALUE)))
                .addContainerGap())
        );
        pnlBuscaTratamentoLayout.setVerticalGroup(
            pnlBuscaTratamentoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlBuscaTratamentoLayout.createSequentialGroup()
                .addGroup(pnlBuscaTratamentoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(lblPesquisaTratamento)
                    .addGroup(pnlBuscaTratamentoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(cbxFiltroTratamento, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(txtPesquisaTratamento, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(btnBuscar)))
                .addGap(18, 18, 18)
                .addComponent(lblResultadoPesquisaCliente)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jScrollPaneResulClient, javax.swing.GroupLayout.PREFERRED_SIZE, 140, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(lblAnimaisClient)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jScrollPaneResultadoAnimal, javax.swing.GroupLayout.PREFERRED_SIZE, 123, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(lblTratamentoAnimal)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jScrollPaneTratAnimal, javax.swing.GroupLayout.PREFERRED_SIZE, 123, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(49, Short.MAX_VALUE))
        );

        pnlSessãoTrat.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Sessões do Tratamento", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Verdana", 1, 12), new java.awt.Color(51, 51, 51))); // NOI18N

        jTableSessãoTrat.setFont(new java.awt.Font("Verdana", 0, 12));
        jTableSessãoTrat.setForeground(new java.awt.Color(51, 51, 51));
        jTableSessãoTrat.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null},
                {null, null},
                {null, null},
                {null, null},
                {null, null},
                {null, null},
                {null, null},
                {null, null},
                {null, null},
                {null, null},
                {null, null},
                {null, null},
                {null, null},
                {null, null},
                {null, null},
                {null, null},
                {null, null},
                {null, null},
                {null, null},
                {null, null},
                {null, null},
                {null, null},
                {null, null},
                {null, null},
                {null, null},
                {null, null},
                {null, null},
                {null, null},
                {null, null},
                {null, null}
            },
            new String [] {
                "Tipo de tratamento", "Data do tratamento"
            }
        ) {
            boolean[] canEdit = new boolean [] {
                false, false
            };

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        jTableSessãoTrat.setEnabled(false);
        jScrollPaneSessãoTrat.setViewportView(jTableSessãoTrat);

        btnRegistroDt.setFont(new java.awt.Font("Verdana", 0, 12));
        btnRegistroDt.setForeground(new java.awt.Color(51, 51, 51));
        btnRegistroDt.setText("Registrar mais um tratamento nesta data");

        javax.swing.GroupLayout pnlSessãoTratLayout = new javax.swing.GroupLayout(pnlSessãoTrat);
        pnlSessãoTrat.setLayout(pnlSessãoTratLayout);
        pnlSessãoTratLayout.setHorizontalGroup(
            pnlSessãoTratLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, pnlSessãoTratLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(pnlSessãoTratLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jScrollPaneSessãoTrat, javax.swing.GroupLayout.DEFAULT_SIZE, 546, Short.MAX_VALUE)
                    .addComponent(btnRegistroDt))
                .addContainerGap())
        );
        pnlSessãoTratLayout.setVerticalGroup(
            pnlSessãoTratLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, pnlSessãoTratLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPaneSessãoTrat, javax.swing.GroupLayout.PREFERRED_SIZE, 514, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(btnRegistroDt))
        );

        lblCadastroProdutos.setFont(new java.awt.Font("Verdana", 0, 18));
        lblCadastroProdutos.setForeground(new java.awt.Color(102, 102, 255));
        lblCadastroProdutos.setText("Tratamento");
        lblCadastroProdutos.setName("lblCadastroAnimal"); // NOI18N

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 1198, Short.MAX_VALUE)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(pnlBuscaTratamento, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(pnlSessãoTrat, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(lblCadastroProdutos))
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 671, Short.MAX_VALUE)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addGap(17, 17, 17)
                .addComponent(lblCadastroProdutos)
                .addGap(18, 18, 18)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(pnlSessãoTrat, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(pnlBuscaTratamento, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addGap(32, 32, 32))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(JFrameTratamento.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(JFrameTratamento.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(JFrameTratamento.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(JFrameTratamento.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {

            public void run() {
                new JFrameTratamento().setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton btnBuscar;
    private javax.swing.JButton btnRegistroDt;
    private javax.swing.JComboBox cbxFiltroTratamento;
    private javax.swing.JScrollPane jScrollPaneResulClient;
    private javax.swing.JScrollPane jScrollPaneResultadoAnimal;
    private javax.swing.JScrollPane jScrollPaneSessãoTrat;
    private javax.swing.JScrollPane jScrollPaneTratAnimal;
    private javax.swing.JTable jTableAnimal;
    private javax.swing.JTable jTableSessãoTrat;
    private javax.swing.JTable jTableTratAnimal;
    private javax.swing.JLabel lblAnimaisClient;
    private javax.swing.JLabel lblCadastroProdutos;
    private javax.swing.JLabel lblPesquisaTratamento;
    private javax.swing.JLabel lblResultadoPesquisaCliente;
    private javax.swing.JLabel lblTratamentoAnimal;
    private javax.swing.JPanel pnlBuscaTratamento;
    private javax.swing.JPanel pnlSessãoTrat;
    private javax.swing.JTable tbeResultado;
    private javax.swing.JTextField txtPesquisaTratamento;
    // End of variables declaration//GEN-END:variables
}
